package com.hakim.wfb.biz;

import com.hakim.wfb.bean.PointOrder;
import com.hakim.wfb.customer.params.trans.GetPointOrderParameter;
import com.hakim.wfb.customer.params.trans.GetProfitPointOrderParameter;
import com.hakim.wfb.dao.PointOrderDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/7/2.
 */
@Service("pointOrderBiz")
public class PointOrderBiz {

    @Autowired
    private PointOrderDao pointOrderDao;

    public void add(PointOrder t) {
        pointOrderDao.add(t);
    }


    public List<PointOrder> getPointOrders(GetPointOrderParameter param) {
        return pointOrderDao.getPointOrders(param);
    }

    public int getPointOrderCount(GetPointOrderParameter param) {
        return pointOrderDao.getPointOrderCount(param);
    }

    public List<PointOrder> getProfitPointOrders(GetProfitPointOrderParameter param) {
        return pointOrderDao.getProfitPointOrders(param);
    }

    public int getProfitPointOrderCount(GetProfitPointOrderParameter param) {
        return pointOrderDao.getProfitPointOrderCount(param);
    }

}
